<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

//Auth::routes();

Route::group(['prefix' => "admin", 'namespace' => 'Admin'], function () {
    // 控制器在 "App\Http\Controllers\Admin" 命名空间下
    $authController = "AuthController";

    $adminController = "AdminController";

    Route::get("login", $authController . "@getLogin");
    Route::post("login", $authController . "@postLogin");
    Route::get("password", $authController . "@getPassword");

    Route::get("logout", $authController . "@getLogout");

    Route::get("index", $adminController . "@getIndex");
});